package com.six.core.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.File;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * 权限
 * @TableName acl_permission
 */
@Getter
@Setter
@TableName(value ="acl_permission")
@ApiModel(value = "Permission对象", description = "权限")
@Data
public class Permission implements Serializable {
    private static final long serialVersionUID = 1L;


//    public Integer getId;

    @ApiModelProperty("编号")
    @TableId("id")
    private Integer id;

    @ApiModelProperty("所属上级")
    @TableField("pid")
    private Integer pid;

    @ApiModelProperty("名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("权限值")
    @TableField("code")
    private String code;

    @ApiModelProperty("访问路径")
    @TableField("path")
    private String path;

    @ApiModelProperty("图标")
    @TableField("icon")
    private String icon;

    @ApiModelProperty("状态(0:禁止,1:正常)")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("逻辑删除 1（true）已删除， 0（false）未删除")
    @TableField(value = "is_deleted",fill = FieldFill.INSERT)
    private Integer isDeleted;

    @ApiModelProperty("创建时间")
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty("更新时间")
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @TableField(exist = false)
        private List<Permission> children;


}